<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>快乐运动</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="../../bower_components/bootstrap/dist/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="../../bower_components/font-awesome/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="../../bower_components/Ionicons/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="../../dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="../../dist/css/skins/_all-skins.min.css">
  <!-- Morris chart -->
  <link rel="stylesheet" href="../../bower_components/morris.js/morris.css">
  <!-- jvectormap -->
  <link rel="stylesheet" href="../../bower_components/jvectormap/jquery-jvectormap.css">
  <!-- Date Picker -->
  <link rel="stylesheet" href="../../bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="../../bower_components/bootstrap-daterangepicker/daterangepicker.css">
  <!-- bootstrap wysihtml5 - text editor -->
  <link rel="stylesheet" href="../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->

  <!-- Google Font -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <script src="../../js/axios.min.js"></script>
    <script src="../../js/vue.js"></script>
  <script src="../../js/zpageNav.js"></script>
  <link rel="stylesheet" href="../../css/zpageNav.css">

</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <header class="main-header">
    <!-- Logo -->
    <a href="../../index.html" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>快乐运动</b></span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>快乐运动</b></span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- Messages: style can be found in dropdown.less-->
          <li class="dropdown messages-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-envelope-o"></i>
              <span class="label label-success">4</span>
            </a>
            <ul class="dropdown-menu">
              <li class="header">公告</li>
              <li>
                <!-- inner menu: contains the actual data -->
                <ul class="menu">
                  <li><!-- start message -->
                    <a href="#">
                      <div class="pull-left">
                        <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                      </div>
                      <h4>
                        【线上培训】
                        <small><i class="fa fa-clock-o"></i> 12月6号</small>
                      </h4>
                      <p>玩转工作室 so easy</p>
                    </a>
                  </li>
                  <!-- end message -->
                  <li>
                    <a href="#">
                      <div class="pull-left">
                        <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
                      </div>
                      <h4>
                        【线上培训】
                        <small><i class="fa fa-clock-o"></i> 12月5号</small>
                      </h4>
                      <p>开始啦。。。</p>
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <div class="pull-left">
                        <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
                      </div>
                      <h4>
                        年终大促销
                        <small><i class="fa fa-clock-o"></i> 12月6号</small>
                      </h4>
                      <p>惊喜连连。。。</p>
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <div class="pull-left">
                        <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
                      </div>
                      <h4>
                        【重要提醒】
                        <small><i class="fa fa-clock-o"></i> 12月5号</small>
                      </h4>
                      <p>动感单车开课了</p>
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <div class="pull-left">
                        <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
                      </div>
                      <h4>
                        【重要提示】
                        <small><i class="fa fa-clock-o"></i> 12月5号</small>
                      </h4>
                      <p>我们是最好的</p>
                    </a>
                  </li>
                </ul>
              </li>
              <li class="footer"><a href="../../pages/notice/list.html">查看全部</a></li>
            </ul>
          </li>
                    
          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
              <span class="hidden-xs">wt运动</span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">
                <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">

                <p>
                  快乐运动
                  <small>13800138000</small>
                </p>
              </li>
              <!-- Menu Body -->
              <li class="user-body">
                <div class="row">
				<!--
                  <div class="col-xs-4 text-center">
                    <a href="editbrand.html">品牌设置</a>
                  </div>
                  <div class="col-xs-4 text-center">
                    <a href="editpassword.html">修改密码</a>
                  </div>
                -->  
                </div>
                <!-- /.row -->
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                
                <div class="pull-right">
                  <a href="../../login.html" class="btn btn-default btn-flat">退 出</a>
                </div>
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
          <li>
            <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
          </li>
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="header"><b>主 菜 单</b></li>
        <li class="treeview">
          <a href="#">
            <i class="glyphicon glyphicon-gift"></i> <span>数据魔方</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="../../pages/member/member.html"><i class="fa fa-circle-o"></i> 会员概况</a></li>
          </ul>
        </li>
        <li class="treeview active">
          <a href="#">
            <i class="glyphicon glyphicon-ok"></i>
            <span>预约签到</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li class="active"><a href="../../pages/ordersign/order.html"><i class="fa fa-circle-o"></i> 预约管理</a></li>
            <li><a href="../../pages/ordersign/sign.html"><i class="fa fa-circle-o"></i> 签到管理</a></li>
            <li><a href="../../pages/ordersign/entrance.html"><i class="fa fa-circle-o"></i> 智能入场</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="glyphicon glyphicon-king"></i>
            <span>会员管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="../../pages/member/allmember.html"><i class="fa fa-circle-o"></i> 全部会员</a></li>
            <li><a href="../../pages/member/membercardbind.html"><i class="fa fa-circle-o"></i> 会员邦卡</a></li>
            <li><a href="../../pages/member/setcard.html"><i class="fa fa-circle-o"></i> 设置会员卡</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="glyphicon glyphicon-book"></i>
            <span>课程管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="../../pages/course/group.html"><i class="fa fa-circle-o"></i> 团课管理</a></li>
            <li><a href="../course/private.html"><i class="fa fa-circle-o"></i> 私教管理</a></li>
            <li><a href="../../pages/course/evaluation.html"><i class="fa fa-circle-o"></i> 评价管理</a></li>
            
          </ul>
        </li>
        
        <li class="treeview">
          <a href="#">
            <i class="glyphicon glyphicon-th"></i> <span>统计报表</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="../../pages/tables/income.html"><i class="fa fa-circle-o"></i> 营收报表</a></li>
            <li><a href="../../pages/tables/course.html"><i class="fa fa-circle-o"></i> 课程报表</a></li>
			<li><a href="../../pages/tables/card.html"><i class="fa fa-circle-o"></i> 会员卡报表</a></li>
            <li><a href="../../pages/tables/emp.html"><i class="fa fa-circle-o"></i> 员工报表</a></li>
			<li><a href="../../pages/tables/salary.html"><i class="fa fa-circle-o"></i> 薪资报表</a></li>

          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="glyphicon glyphicon-user"></i> <span>员工设置</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="../../pages/employee/coach.html"><i class="fa fa-circle-o"></i> 工作人员</a></li>
            <li><a href="../../pages/employee/course.html"><i class="fa fa-circle-o"></i> 教练</a></li>
			<li><a href="../../pages/employee/card.html"><i class="fa fa-circle-o"></i> 员工请假</a></li>
            <li><a href="../../pages/employee/emp.html"><i class="fa fa-circle-o"></i> 薪资设置</a></li>
			
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="glyphicon glyphicon-leaf"></i> <span>场馆设置</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="../../pages/venue/edit.html"><i class="fa fa-circle-o"></i> 场馆编辑</a></li>
            <li><a href="../../pages/venue/photo.html"><i class="fa fa-circle-o"></i> 场馆相册</a></li>
			
          </ul>
        </li>
        
        <li>
          <a href="../../pages/service/service.html">
            <i class="glyphicon glyphicon-asterisk"></i> <span>系统设置</span>
            <span class="pull-right-container">
              <small class="label pull-right bg-green">sys</small>
            </span>
          </a>
        </li>
        
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        预约签到
        <small>预约签到/预约管理 </small>
      </h1>
      
    </section>

    <!-- Main content -->
    <section class="content">
      
      <!-- Main row -->
      <div class="row">
        <!-- Left col -->
        <section class="col-lg-12 connectedSortable">
          <!-- TO DO List -->
          <div class="box box-primary" id="box-primary">
            <div class="box-header">
              <i class="ion ion-clipboard"></i>

              <h3 class="box-title">预约管理</h3>
			  <div class="pull-right">
			    <a href="addorder.html">
			    <button type="button" class="btn btn-success">
                    +预约
                </button>
				</a>
			    <button type="button" class="btn btn-info" @click="downBtn">
                    导出excel
                </button>
			  </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <div class="row">
                <div class="col-lg-3">
                  <div class="input-group">
                        <span class="input-group-addon">
                          <input type="checkbox">
                        </span>
                    <select class="form-control" v-model="regionActive" @click="changeRegion($event)" @change="btn">
                        <option v-for="(list,index) in regionList" :key="index" :label="list.tregionName" :value="list.tregionName" v-text="list.tregionName"></option>
						<option selected="selected" value="">全部场馆</option>
<!--						<option value="">快乐运动</option>-->
					</select>
                  </div>
                  <!-- /input-group -->
                </div>
                <!-- /.col-lg-3 -->
                <div class="col-lg-3">
                  <div class="input-group">
                        <span class="input-group-addon">
                          <input type="checkbox">
                        </span>
						
                    <select class="form-control" style="width: 100%;" v-model="staffActive" @click="changeStaff($event)" @change="btn">
                        <option selected="selected" value="">全部教练</option>
                        <option v-for="(list,index) in staffList" :key="index" :label="list.staffName" :value="list.staffName" v-text="list.staffName"></option>
						<!--<option value="">乔彬</option>
						<option value="">艾伦</option>
						<option value="">常远</option>
						<option value="">宋小宝</option>
						<option value="">小沈阳</option>-->
					</select>
                  </div>
                  <!-- /input-group -->
                </div>
                <!-- /.col-lg-3 -->
				<div class="col-lg-3">
                  <div class="input-group">
                        <span class="input-group-addon">
                          <input type="checkbox">
                        </span>
                    <select class="form-control" style="width: 100%;" v-model="courseActive" @click="changeCourse($event)" @change="btn">
                        <option selected="selected" value="">全部课程</option>
						<option v-for="(list,index) in courseList" :key="index" :label="list.coName" :value="list.coName" v-text="list.coName"></option>
						<!--<option value="">动感单车</option>
						<option value="">瑜伽</option>
						<option value="">普拉提</option>
						<option value="">器械</option>
						<option value="">肚皮舞</option>-->
					</select>
                  </div>
                  <!-- /input-group -->
                </div>
                <!-- /.col-lg-3 -->
                <div class="col-lg-3">
                  <div class="input-group">
                        <span class="input-group-addon">
                          <input type="checkbox">
                        </span>
                    <select class="form-control" style="width: 100%;" v-model="flagActive" @click="changeFlag($event)" @change="btn">
						<option selected="selected" value="">全部状态</option>
                        <option v-for="(list,index) in flagList" :key="index" :label="list.name" :value="list.id" v-text="list.name"></option>
<!--						<option value="">已签到</option>-->
<!--						<option value="">未签到</option>-->
						
					</select>
                  </div>
                  <!-- /input-group -->
                </div>
                <!-- /.col-lg-3 -->
              </div>
              <!-- /.row -->
			  <div></div>
			  <div class="row">
                <div class="col-lg-3">
                  <!-- Date -->
				  <div class="form-group">
					
					<div class="input-group date">
					  <div class="input-group-addon">
						<i class="fa fa-calendar"></i>
					  </div>
					  <input type="date" class="form-control pull-right"  v-model="bookingTime" @blur="bookingTimeBtn($event)" @change="btn">
					</div>
					<!-- /.input group -->
				  </div>
				  <!-- /.form group -->
                </div>
                <!-- /.col-lg-3 -->
                <div class="col-lg-3">
                  <!-- Date -->
				  <div class="form-group">
					
					<div class="input-group date">
					  <div class="input-group-addon">
						<i class="fa fa-calendar"></i>
					  </div>
					  <input type="date" class="form-control pull-right" v-model="schoolTime" @blur="schoolTimeBtn($event)" @change="btn">
					</div>
					<!-- /.input group -->
				  </div>
				  <!-- /.form group -->
                </div>
                <!-- /.col-lg-3 -->
				<div class="col-lg-3">
                  <div class="input-group">
                        <span class="input-group-addon">
                          <input type="checkbox">
                        </span>
                    <!-- text input -->
					<div class="form-group">
					   <input type="text" class="form-control" placeholder="手机,姓名,卡号" v-model="search" @change="btn">
					</div>
                  </div>
                  <!-- /input-group -->
                </div>
                <!-- /.col-lg-3 -->
                <div class="col-lg-3">
                  <div class="input-group">
                        <span class="input-group-btn">
						  <div class="pull-right">
                            <button type="button" class="btn btn-block btn-primary" @click="btn">搜索</button>
                          </div>
                        </span>
                  </div>
                  <!-- /input-group -->
                </div>
                <!-- /.col-lg-3 -->
              </div>
              <!-- /.row -->
			  <!--second row-->
			  <div class="row" >
				<table id="example2" class="table table-bordered table-hover">
					<thead>
					<tr>
					  <th>会员名</th>
					  <th>电话</th>
					  <th>会员卡</th>
					  <th>销售</th>
					  <th>教练</th>
					  <th>预约时间</th>
					  <th>上课时间</th>
					  <th>课程时间</th>
                      <th>签到时间</th>
                      <th>签到方式</th>
                      <th>价格</th>
					  <th>课程</th>
					  <th>状态</th>
					  <th>操作</th>
					</tr>
					</thead>

					<tbody>
                    <tr v-for="info in booking_info" >
                        <td v-text="info.bid" style="display: none"></td>
                        <td v-text="info.memberName"></td>
                        <td v-text="info.btel"></td>
                        <td v-text="info.memberCard"></td>
                        <td v-text="info.sellName"></td>
                        <td v-text="info.coachName"></td>
                        <td v-text="info.bbookingtime"></td>
                        <td v-text="info.bschooltime"></td>
                        <td v-text="info.bcoursetime"></td>
                        <td v-text="info.bsigntime"></td>
                        <td v-text="info.bway"></td>
                        <td v-text="info.bcost"></td>
                        <td v-text="info.bcourseName"></td>
                        <td v-if="info.bflag > 0">
                          已签到
                        </td>
                        <td v-else>
                          未签到
                        </td>
                        <td>
<!--                            <a href="editorder.html"><button type="button" class="btn btn-info" >编辑</button></a>-->
                            <button type="button" class="btn btn-info" @click="transmit(info)">编辑</button>
                            <button type="button" class="btn btn-danger"  @click="deleteBtn(info.bid)">删除</button>
                            <button type="button" class="btn btn-info" @click="signIn(info.bid,info.bcourseName,info.bflag)">签到</button>
                        </td>
                    </tr>
					</tbody>

                    <tbody>
                    <tr v-for="list in searchData">
                      <td v-text="list.bid" style="display: none"></td>
                      <td v-text="list.memberName"></td>
                      <td v-text="list.btel"></td>
                      <td v-text="list.memberCard"></td>
                      <td v-text="list.sellName"></td>
                      <td v-text="list.coachName"></td>
                      <td v-text="list.bbookingtime"></td>
                      <td v-text="list.bschooltime"></td>
                      <td v-text="list.bcoursetime"></td>
                      <td v-text="list.bsigntime"></td>
                      <td v-text="list.bway"></td>
                      <td v-text="list.bcost"></td>
                      <td v-text="list.bcourseName"></td>
                      <td v-if="list.bflag > 0">
                        已签到
                      </td>
                      <td v-else>
                        未签到
                      </td>
                      <td>
                        <a href="editorder.html"><button type="button" class="btn btn-info">编辑</button></a>
                        <button type="button" class="btn btn-danger"  @click="deleteBtn(list.bid)">删除</button>
                        <button type="button" class="btn btn-info" @click="signIn(list.bid,list.bcourseName,list.bflag)">签到</button>
                      </td>
                    </tr>
                    </tbody>

					<tfoot>
					
					</tfoot>
				  </table>
			  </div>

			  <!-- /.row (second row) -->
			  <!--three row-->
			  <div class="row" id="row2">
				<div class="box-footer clearfix">
                      <zpagenav :page="page" :page-size="pageSize" :total="total" :max-page="maxPage" v-on:pagehandler="pageHandler"></zpagenav>
				</div>
			  </div>

			  <!-- /.row (three row) -->
            </div>
            
          </div>
            <script type="application/javascript">
                let vue=new Vue({
                    el:"#box-primary",
                    data: {
                        booking_info:[],
                        regionList:[],
                        regionActive:"",
                        staffList:[],
                        staffActive:"",
                        courseList:[],
                        courseActive:"",
                        bookingTime:"",
                        schoolTime:"",
                        flagList:[{name:"已签到",id:"1"},{name:"未签到",id:"0"}],
                        flagActive:"",
                        search:"",
                        searchData:[],
                        isShow:false,

                        page: 1,                    //当前页面数
                        total: 0,                  //最大数据条数
                        pageSize: 5,                //每页显示条数
                        maxPage: 5,                  //最大页码数


                    },
                    created(){
                      let formData=new FormData();
                      formData.append("pageNum",1);
                      formData.append("pageSize",5);
                      axios.post('/booking/findAll.do',formData).then(function (response) {
                        console.log("请求成功");
                        console.log(response);
                        vue.booking_info = response.data.records;
                        vue.total=response.data.total;
                        vue.pageSize=response.data.size;
                        vue.maxPage=response.data.pages;
                        vue.page=response.data.current;
                      }).catch(function (error) {
                        console.log(error);
                        console.log("请求失败");
                      })
                  },
                    methods: {
                        pageHandler:function (pageNumber) {
                          vue.btn(pageNumber);
                        },
                        changeRegion:function (event) {
                            axios.post('/booking/findAllRegion.do').then(function(result){
                              console.log("查询全部场馆请求成功");
                              console.log(result);
                              vue.regionList=result.data;
                              this.regionActive=event.target.value;
                              console.log("你选中了："+this.regionActive);
                            }).catch(function(error){
                              console.log(error);
                              console.log("场馆请求失败了");
                            });
                        },
                        changeStaff:function(event){
                            axios.post('/booking/findAllStaff.do').then(function (result) {
                              console.log("查询全部教练请求成功");
                              console.log(result);
                              vue.staffList=result.data;
                              this.staffActive=event.target.value;
                              console.log("你选中了："+this.staffActive);
                            }).catch(function (error) {
                              console.log(error);
                              console.log("教练请求失败了");
                            })

                        },
                        changeCourse:function (event) {
                            axios.post('/booking/findAllCourse.do').then(function (result) {
                                console.log("查询全部课程请求成功");
                                console.log(result);
                                vue.courseList=result.data;
                                this.courseActive=event.target.value;
                                console.log("你选中了："+this.courseActive);
                            }).catch(function (error) {
                                console.log(error);
                                console.log("课程请求失败了");
                            })
                        },
                        changeFlag:function (event) {
                          this.flagActive=event.target.value;
                          console.log("你选中了："+this.flagActive);
                        },
                        bookingTimeBtn:function (event) {
                          this.bookingTime=event.target.value;
                          console.log("预约时间："+this.bookingTime);
                        },
                        schoolTimeBtn:function (event) {
                          this.schoolTime=event.target.value;
                          console.log("签到时间："+this.schoolTime);
                        },
                        btn: function(pageNumber){
                          if (typeof(pageNumber) != 'number')
                            pageNumber = 1;
                            axios.get('/booking/likeNameCourse.do?regionName='+this.regionActive+
                                    '&coachName='+this.staffActive+
                                    '&courseName='+ this.courseActive+
                                    '&flag='+this.flagActive+
                                    '&bookingTime='+this.bookingTime+
                                    '&schoolTime='+this.schoolTime+
                                    '&card='+this.search+'&tel='+this.search+'&name='+this.search+
                                    '&pageNum='+pageNumber+'&pageSize='+this.pageSize)
                                    .then(function (result) {
                                      console.log("模糊查询请求成功");
                                      console.log(result);
                                      vue.searchData=result.data.records;
                                      vue.total=result.data.total;
                                      vue.pageSize=result.data.size;
                                      vue.maxPage=result.data.pages;
                                      vue.page=result.data.current;
                            }).catch(function (error) {
                              console.log(error);
                              console.log("模糊查询请求失败了");
                            });

                            this.isShow=!this.isShow;
                            if(this.isShow){
                              this.booking_info=false;
                            }else{
                              var search=this.search;
                              if (search){
                                this.searchData=this.booking_info.filter(value => value.search.indexOf(this.search())!==-1);
                              }
                            }

                      },
                        deleteBtn:function (id) {

                            console.log("预约编号："+id);
                            axios.post('/booking/deleteBooking.do?bid='+id).then(function (result) {
                              console.log("删除预约请求成功了");
                              if (result.data){
                                alert("删除成功");
                                window.location.href="/view/pages/ordersign/order.html";
                              }else {
                                alert("删除失败");
                              }
                            }).catch(function (error) {
                              console.log(error);
                              console.log("删除预约请求失败了");
                            });
                        },
                        signIn:function (id,bcourseName,bflag) {
                          console.log("预约编号："+id);
                          console.log("预约课程名："+bcourseName);
                          console.log("预约状态："+bflag);
                          if(bflag > 0){
                            alert("已经签到，请勿重复签到！");
                          }else {
                            axios.post('/booking/signInBooking.do?bid=' + id + '&coName=' + bcourseName).then(function (result) {
                              console.log("签到请求成功了");
                              if (result.data) {
                                alert("签到成功");
                                window.location.href = "/view/pages/ordersign/order.html";
                              } else {
                                alert("签到失败");
                              }
                            }).catch(function (error) {
                              console.log(error);
                              console.log("签到请求失败了");
                            });
                          }
                        },
                        transmit:function (info) {
                            console.log("预约信息："+info.bid);
                            axios.get('/update/transmit.do').then(function (result) {
                              console.log("转发请求成功了");

                            }).catch(function (error) {
                              console.log(error);
                              console.log("转发请求失败了");
                            })
                          },
                        downBtn:function (){
                          window.location.href="/booking/export";
                          }
                        },

                });
            </script>

          <!-- /.box -->

          

        </section>
		<!-- ./three col -->
      </div>
      <!-- /.row (main row) -->

    </section>
    <!-- /.content -->



  </div>
  <!-- /.content-wrapper -->
  <!--批量导出modal -->
  <div class="modal modal-info fade" id="modal-info">
	<div class="modal-dialog">
		<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close">
			<span aria-hidden="true">&times;</span></button>
			<h4 class="modal-title">导出</h4>
		</div>
		<div class="modal-body">
			<p>导出中......</p>
		</div>
		<div class="modal-footer">
			<button type="button" class="btn btn-outline pull-left" data-dismiss="modal">关闭</button>
			<button type="button" class="btn btn-outline">完成</button>
		</div>
		</div>
		<!-- /.modal-content -->
	</div>
	<!-- /.modal-dialog -->
	</div>
	<!-- /.modal 批量导出modal -->
  <!--删除的modal框-->
  <div class="modal modal-danger fade" id="modal-danger">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title">删除</h4>
        </div>
        <div class="modal-body">
          <p>确认删除数据&hellip;</p>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-outline pull-left" data-dismiss="modal">关闭</button>
          <button type="button" class="btn btn-outline">删除</button>
        </div>
      </div>
      <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
  </div>
  <!-- /.modal 删除的modal框结束 -->
  <footer class="main-footer">
    <div class="pull-right hidden-xs">
      <b>Version</b> 1.0.0
    </div>
    <strong>Copyright &copy; 2017-2018 <a href="http://www.tedu.cn">XX科技</a>.</strong> All rights
    reserved.
  </footer>

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    
    <!-- Create the tabs -->
    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
      <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab">全部</a></li>
      <li><a href="#control-sidebar-settings-tab" data-toggle="tab">预约</a></li>
	  <li><a href="#control-sidebar-pay-tab" data-toggle="tab">付费</a></li>
	  <li><a href="#control-sidebar-system-tab" data-toggle="tab">系统</a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
      <!-- Home tab content -->
      <div class="tab-pane active" id="control-sidebar-home-tab">
        <h3 class="control-sidebar-heading">最新通知</h3>
        <ul class="control-sidebar-menu">
		  
          <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>您当前短信已用完，系统将不再发送短信。如需启用，请立即点此充值</p>
              </div>
            </a>
          </li>
          <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>您的账户将于2017-12-12 23:59:59到期，为了不影响您使用，请立即点此充值</p>
              </div>
            </a>
          </li>
          
		  <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>您当前短信已用完，系统将不再发送短信。如需启用，请立即点此充值</p>
              </div>
            </a>
          </li>
          <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>您的账户将于2017-12-12 23:59:59到期，为了不影响您使用，请立即点此充值</p>
              </div>
            </a>
          </li>
          <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>万事具备，只差会员，请您开始添加会员吧！</p>
              </div>
            </a>
          </li>
		  <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>课程添加好了，放到课程表内，会员才可以约课哦：团课排期，私教排期</p>
              </div>
            </a>
          </li>
		  <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>该开始添加课程了：添加团课课程，添加私教课程</p>
              </div>
            </a>
          </li>
		  <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>现在，设置一下我们的专属会员卡吧：添加会员卡类别</p>
              </div>
            </a>
          </li>
		  <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>好了，现在可以添加我们的员工和教练了：添加员工</p>
              </div>
            </a>
          </li>
        </ul>
        <!-- /.control-sidebar-menu -->
        
      </div>
      <!-- /.tab-pane -->
      <!-- Stats tab content -->
      <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
      <!-- /.tab-pane -->
      <!-- Settings tab content -->
      <div class="tab-pane" id="control-sidebar-settings-tab">
        预约暂无内容
      </div>
      <!-- /.tab-pane -->
	  <!-- Settings tab content -->
      <div class="tab-pane" id="control-sidebar-pay-tab">
        付费暂无内容
      </div>
      <!-- /.tab-pane -->
	  <!-- Home tab content -->
      <div class="tab-pane" id="control-sidebar-system-tab">
        <h3 class="control-sidebar-heading">最新通知</h3>
        <ul class="control-sidebar-menu">
		  
          <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>您当前短信已用完，系统将不再发送短信。如需启用，请立即点此充值</p>
              </div>
            </a>
          </li>
          <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>您的账户将于2017-12-12 23:59:59到期，为了不影响您使用，请立即点此充值</p>
              </div>
            </a>
          </li>
          
		  <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>您当前短信已用完，系统将不再发送短信。如需启用，请立即点此充值</p>
              </div>
            </a>
          </li>
          <li>
            <a href="#">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>您的账户将于2017-12-12 23:59:59到期，为了不影响您使用，请立即点此充值</p>
              </div>
            </a>
          </li>
          <li>
            <a href="../../pages/notice/listmsg.html">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>万事具备，只差会员，请您开始添加会员吧！</p>
              </div>
            </a>
          </li>
		  <li>
            <a href="../../pages/notice/listmsg.html">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>课程添加好了，放到课程表内，会员才可以约课哦：团课排期，私教排期</p>
              </div>
            </a>
          </li>
		  <li>
            <a href="../../pages/notice/listmsg.html">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>该开始添加课程了：添加团课课程，添加私教课程</p>
              </div>
            </a>
          </li>
		  <li>
            <a href="../../pages/notice/listmsg.html">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>现在，设置一下我们的专属会员卡吧：添加会员卡类别</p>
              </div>
            </a>
          </li>
		  <li>
            <a href="../../pages/notice/listmsg.html">
              <i class="menu-icon fa fa-bullhorn bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">
				  系统通知
				  <small class="pull-right"><i class="fa fa-clock-o"></i> 12-6 10:10</small>
				</h4>

                <p>好了，现在可以添加我们的员工和教练了：添加员工</p>
              </div>
            </a>
          </li>
        </ul>
        <!-- /.control-sidebar-menu -->
        
      </div>
      <!-- /.tab-pane -->
    </div>
  </aside>
  <!-- /.control-sidebar -->
  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- jQuery 3 -->
<script src="../../bower_components/jquery/dist/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="../../bower_components/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script src="../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Select2 -->
<script src="../../bower_components/select2/dist/js/select2.full.min.js"></script>
<!-- Morris.js charts -->
<script src="../../bower_components/raphael/raphael.min.js"></script>
<script src="../../bower_components/morris.js/morris.min.js"></script>
<!-- Sparkline -->
<script src="../../bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="../../plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="../../bower_components/jquery-knob/dist/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="../../bower_components/moment/min/moment.min.js"></script>
<script src="../../bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="../../bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- DataTables -->
<script src="../../bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="../../bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<!-- Slimscroll -->
<script src="../../bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="../../bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="../../dist/js/adminlte.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="../../dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<!--<script src="dist/js/demo.js"></script>-->
<script>
  $(function () {
    //Initialize Select2 Elements
    $('.select2').select2()

	//Date picker
    $('#datepicker').datepicker({
      autoclose: true
    })
    //Date picker
    $('#datepicker1').datepicker({
      autoclose: true
    })

    
        
    
  })
</script>




</body>
</html>
